/********************************************************************************/
/********************************************************************************/

#ifndef TPM2_VALUE_H
#define TPM2_VALUE_H

//#include "tcm_types.h"
//#include "tcm_structures.h"

#ifndef IMPLEMENTATION_PCR
#define IMPLEMENTATION_PCR              24
#endif



#ifndef SM3_256_DIGEST_SIZE
#define SM3_256_DIGEST_SIZE             32
#endif

enum tpm2_st_value
{
	TPM_ST_NULL=0x0008,
	TPM_ST_NO_SESSIONS=0x1008,
	TPM_ST_SESSIONS=0x2008,
	TPM_ST_RSP_COMMAND=0xC400,
};

enum tpm2_cc_value
{
	TPM_CC_GetRandom=0x7B010000,
	TPM_CC_PCR_Read=0x7E010000,
	TPM_CC_PCR_Extend=0x82010000,
	TPM_CC_PCR_SetAuthValue=0x83010000
};

enum tpm_alg_id
{
	TPM_ALG_SM3_256=0x0012,
	TPM_ALG_SM4=0x0013,
	TPM_ALG_SM2=0x001B
};

#endif
